<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

		<h:form id="loginForm">
			<div>
				

				
				<h:panelGrid columns="2"
					style="margin-left: auto;margin-right: auto">

					

					<p:panel header="ACESSO AO SISTEMA">
						<p:messages globalOnly="true" />
                        Login:<br />
						<p:inputText size="30" id="login" value="#{usuarioSessaoBean.login}" />
						<br />
                        Senha:<br />
						<p:password size="30" id="senha" value="#{usuarioSessaoBean.senha}" />
						<br />
                        Perfil:<br />
						<p:selectOneMenu style="width:97%" id="perfil" value="#{usuarioSessaoBean.perfil}">
							<f:selectItem itemLabel="-- SELECIONE --" itemValue=""/>
							<f:selectItem itemLabel="DONO DE  PROJETO" itemValue="DP" />
							<f:selectItem itemLabel="FREELANCER" itemValue="FREE" />
						</p:selectOneMenu>
						<br />
						<br />
						<div style="text-align: right;">
							<p:commandButton  value="ACESSAR" ajax="false"
								action="#{usuarioSessaoBean.autenticar}" />
						</div>

					</p:panel>
				</h:panelGrid>
			</div>
		</h:form>
	


</html>

